public class Player implements IPlayer {

	private char mark;
	private int points;
	private String name;

	public Player() {
		mark = ' ';
		points = 0;
		name = "newPlayer";
	}

	public Player(char mark, String name) {
		this.setMark(mark);
		this.setName(name);
	}

	@Override
	public void setMark(char mark) {
		if (mark != ' ')
			this.mark = mark;
	}

	@Override
	public int getPoints() {
		return points;
	}

	@Override
	public void setPoints(int points) {
		if (points > 0)
			this.points = points;
	}

	@Override
	public char getMark() {
		return mark;
	}

	@Override
	public void setName(String name) {
		if (name != null && !name.equals(" "))
			this.name = name;
	}

	@Override
	public String getName() {
		return this.name;
	}

}
